import VueRouter from 'vue-router';
/**
 * 首页路由引入
 */
import Home from './components/tabbar/home.vue';
import Member from './components/tabbar/member.vue';
import Search from './components/tabbar/search.vue';
import ShopCar from './components/tabbar/shopCar.vue';
/**
 * 新闻页路由引入
 */
import newsList from './components/news/newsList.vue';
import newsListInfo from './components/news/newsListInfo.vue'; // 详情页

/**
 * 配置路由参数
 */
const router  = new VueRouter({
  routes: [
    { path:'/home', component:Home,},
    {path:'/member',component:Member},
    {path:'/search',component:Search},
    {path:'/shopCar',component:ShopCar},
    {path:'/home/newsList',component:newsList},
    {path:'/home/newsList/:id',component:newsListInfo},
    {path:'/',redirect:'/home'}
  ],
  linkActiveClass:"mui-active"// 替换默认的样式
});
/**
 * 导出路由
 */
export default router;